package com.example.demo.entity;

import java.io.Serializable;

public class Code implements Serializable {
    private Integer codeId;

    private Integer codeTaskId;

    private Integer codeUserId;

    private String codeAddress;

    private static final long serialVersionUID = 1L;

    public Integer getCodeId() {
        return codeId;
    }

    public void setCodeId(Integer codeId) {
        this.codeId = codeId;
    }

    public Integer getCodeTaskId() {
        return codeTaskId;
    }

    public void setCodeTaskId(Integer codeTaskId) {
        this.codeTaskId = codeTaskId;
    }

    public Integer getCodeUserId() {
        return codeUserId;
    }

    public void setCodeUserId(Integer codeUserId) {
        this.codeUserId = codeUserId;
    }

    public String getCodeAddress() {
        return codeAddress;
    }

    public void setCodeAddress(String codeAddress) {
        this.codeAddress = codeAddress == null ? null : codeAddress.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", codeId=").append(codeId);
        sb.append(", codeTaskId=").append(codeTaskId);
        sb.append(", codeUserId=").append(codeUserId);
        sb.append(", codeAddress=").append(codeAddress);
        sb.append("]");
        return sb.toString();
    }
}